projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f13260
)
text: Constify field of GtkTextLineSegmentClass
author
Emmanuele Bassi
<ebassi@gnome.org>
Sat, 15 Oct 2016 20:33:11 +0000
(21:33 +0100)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Mon, 17 Oct 2016 10:44:11 +0000
(11:44 +0100)
We only use it internally for statically allocated structures, with
static strings, so there's no reason for it to be a `char*`.
gtk/gtktextsegment.h
patch
|
blob
|
history
diff --git
a/gtk/gtktextsegment.h
b/gtk/gtktextsegment.h
index 5621bdee847abaf7742e3f8ce9e4918d69f4ad2a..4ea125f7c94cdce31cc0fcf9fcc0aa1162871f32 100644
(file)
--- a/
gtk/gtktextsegment.h
+++ b/
gtk/gtktextsegment.h
@@
-94,7
+94,7
@@
typedef void (*GtkTextSegCheckFunc) (GtkTextLineSegment *seg
GtkTextLine *line);
struct _GtkTextLineSegmentClass {
- c
har *name;
/* Name of this kind of segment. */
+ c
onst char *name;
/* Name of this kind of segment. */
gboolean leftGravity; /* If a segment has zero size (e.g. a
* mark or tag toggle), does it
* attach to character to its left